package com.our.sys.project1.entity;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;
import javax.persistence.Transient;

import org.springside.modules.orm.grid.ViewField;

@Entity
@Table(name = "T_RegAccount")
public class RegAccount implements Serializable {

    private static final long serialVersionUID = -7349223756749121174L;
    @ViewField
    private Long id;
    @ViewField(header = "发票号", width = 100, align = "left")
    private String number;
    @ViewField(header = "发票日期", width = 100, align = "left")
    private String time;
    @ViewField(header = "结算方式", width = 100, align = "left")
    private String type;
    @ViewField(header = "厂家耗材名", width = 100, align = "left")
    private String materialName;
    @ViewField(header = "备码次数", width = 100, align = "left")
    private Long readyCodeNumber;
    @ViewField(header = "管理码", width = 100, align = "left")
    private String managerCode;
    @ViewField(header = "厂家码", width = 100, align = "left")
    private String factoryCode;
    @ViewField(header = "病人住院号", width = 100, align = "left")
    private String hNumber;
    @ViewField(header = "病人姓名", width = 100, align = "left")
    private String name;
    @ViewField(header = "配发护士", width = 100, align = "left")
    private String readySendWho;
    @ViewField(header = "科室名称", width = 200, align = "left")
    private String tName;
    @ViewField(header = "配发时间", width = 100, align = "left")
    private String readySendTime;
    @ViewField
    private Long readyCodeId;
    @ViewField(header = "操作时间", width = 100, align = "left")
    private String regTime;
    @ViewField(header = "操作人", width = 100, align = "left")
    private String regWho;

    @Id
    @GeneratedValue(strategy = GenerationType.TABLE, generator = "Id_Generator")
    @TableGenerator(name = "Id_Generator", table = "ID_GENERATOR", pkColumnName = "GEN_NAME", valueColumnName = "GEN_VAL", pkColumnValue = "T_RegAccount")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Long getReadyCodeId() {
        return readyCodeId;
    }

    public void setReadyCodeId(Long readyCodeId) {
        this.readyCodeId = readyCodeId;
    }

    public String getRegTime() {
        return regTime;
    }

    public void setRegTime(String regTime) {
        this.regTime = regTime;
    }

    public String getRegWho() {
        return regWho;
    }

    public void setRegWho(String regWho) {
        this.regWho = regWho;
    }

    @Transient
    public String getMaterialName() {
        return materialName;
    }

    public void setMaterialName(String materialName) {
        this.materialName = materialName;
    }

    @Transient
    public Long getReadyCodeNumber() {
        return readyCodeNumber;
    }

    public void setReadyCodeNumber(Long readyCodeNumber) {
        this.readyCodeNumber = readyCodeNumber;
    }

    @Transient
    public String getManagerCode() {
        return managerCode;
    }

    public void setManagerCode(String managerCode) {
        this.managerCode = managerCode;
    }

    @Transient
    public String getFactoryCode() {
        return factoryCode;
    }

    public void setFactoryCode(String factoryCode) {
        this.factoryCode = factoryCode;
    }

    @Transient
    public String gethNumber() {
        return hNumber;
    }

    public void sethNumber(String hNumber) {
        this.hNumber = hNumber;
    }

    @Transient
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Transient
    public String getReadySendWho() {
        return readySendWho;
    }

    public void setReadySendWho(String readySendWho) {
        this.readySendWho = readySendWho;
    }

    @Transient
    public String gettName() {
        return tName;
    }

    public void settName(String tName) {
        this.tName = tName;
    }

    @Transient
    public String getReadySendTime() {
        return readySendTime;
    }

    public void setReadySendTime(String readySendTime) {
        this.readySendTime = readySendTime;
    }

}
